2D Array of 2D Arrays (C# / XNA) [on hold]
Posted
by
Lemoncreme
on Game Development
See other posts from Game Development
or by Lemoncreme
Published on 2013-11-04T02:42:42Z
Indexed on
2013/11/04
4:15 UTC
Read the original article
Hit count: 925
I want to create a 2D array that contains many other 2D arrays. The problem is I'm not quite sure what I'm doing but this is the initialization code I have:
int[,][,] chunk = new int[64, 64][32, 32];
For some reason Visual Studio doesn't like this and says that it's and 'invalid rank specifier'.
Also, I'm not sure how to use the nested arrays once I've declared them...
Some help and some insight, please?
© Game Development or respective owner